package com.cqhfan.api.clients.content.fallback;

import com.cqhfan.api.clients.content.WorksClient;
import com.cqhfan.pojo.content.po.Works;
import org.springframework.cloud.openfeign.FallbackFactory;

/**
 * @author 眭传洪
 * @create 2025-08-18 0:51
 */
public class WorksClientFallbackFactory implements FallbackFactory<WorksClient> {

    @Override
    public WorksClient create(Throwable cause) {
        return new WorksClient() {
            @Override
            public Works getByWorksId(Long worksId) {
                return null;
            }
        };
    }
}
